﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class product_insurance_admin_insurance_claim_list : System.Web.UI.Page
{
  

    protected void Page_Load(object sender, EventArgs e)
    {
        ((Admin)this.Master).mainCategory = "CLAIMS";

        ClaimBLL bll = new ClaimBLL();
        this.gv_PendingClaimList.DataSource = bll.getClaimList();
        this.gv_PendingClaimList.DataBind();
        
    }





    protected void gv_PendingClaimList_SelectedIndexChanged(object sender, EventArgs e)
    {
        int selectedRow = gv_PendingClaimList.SelectedIndex;
        GridViewRow row = gv_PendingClaimList.Rows[selectedRow];
        string caseId = row.Cells[0].Text;
        string certNo = row.Cells[1].Text;

        this.Response.Redirect("~/product/insurance/admin/claim_documents.aspx?certificateNo=" + certNo + "&caseId=" + caseId);
    }
}